home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIDocShellTreeOwner.idl < prev    next >
Text File  |  2006-05-08  |  4KB  |  103 lines

  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * ***** BEGIN LICENSE BLOCK *****
  4.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  5.  *
  6.  * The contents of this file are subject to the Mozilla Public License Version
  7.  * 1.1 (the "License"); you may not use this file except in compliance with
  8.  * the License. You may obtain a copy of the License at
  9.  * http://www.mozilla.org/MPL/
  10.  *
  11.  * Software distributed under the License is distributed on an "AS IS" basis,
  12.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.  * for the specific language governing rights and limitations under the
  14.  * License.
  15.  *
  16.  * The Original Code is the Mozilla browser.
  17.  *
  18.  * The Initial Developer of the Original Code is
  19.  * Netscape Communications, Inc.
  20.  * Portions created by the Initial Developer are Copyright (C) 1999
  21.  * the Initial Developer. All Rights Reserved.
  22.  *
  23.  * Contributor(s):
  24.  *   Travis Bogard <travis@netscape.com>
  25.  *
  26.  * Alternatively, the contents of this file may be used under the terms of
  27.  * either of the GNU General Public License Version 2 or later (the "GPL"),
  28.  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  29.  * in which case the provisions of the GPL or the LGPL are applicable instead
  30.  * of those above. If you wish to allow use of your version of this file only
  31.  * under the terms of either the GPL or the LGPL, and not to allow others to
  32.  * use your version of this file under the terms of the MPL, indicate your
  33.  * decision by deleting the provisions above and replace them with the notice
  34.  * and other provisions required by the GPL or the LGPL. If you do not delete
  35.  * the provisions above, a recipient may use your version of this file under
  36.  * the terms of any one of the MPL, the GPL or the LGPL.
  37.  *
  38.  * ***** END LICENSE BLOCK ***** */
  39.  
  40. #include "nsISupports.idl"
  41.  
  42. /**
  43.  * The nsIDocShellTreeOwner
  44.  */
  45.  
  46. interface nsIDocShellTreeItem;
  47.  
  48. [scriptable, uuid(9e508466-5ebb-4618-abfa-9ad47bed0b2e)]
  49. interface nsIDocShellTreeOwner : nsISupports
  50. {
  51.     /*
  52.     Return the child DocShellTreeItem with the specified name.
  53.     name - This is the name of the item that is trying to be found.
  54.     aRequestor - This is the docshellTreeItem that is requesting the find.  This
  55.     parameter is used to identify when the child is asking its parent to find
  56.     a child with the specific name.  The parent uses this parameter to ensure
  57.     a resursive state does not occur by not again asking the requestor for find
  58.     a shell by the specified name.  Inversely the child uses it to ensure it
  59.     does not ask its parent to do the search if its parent is the one that
  60.     asked it to search.
  61.     aOriginalRequestor - The original treeitem that made the request, if any.
  62.     This is used to ensure that we don't run into cross-site issues.
  63.  
  64.     */
  65.     nsIDocShellTreeItem findItemWithName(in wstring name, 
  66.         in nsIDocShellTreeItem aRequestor,
  67.         in nsIDocShellTreeItem aOriginalRequestor);
  68.  
  69.     /*
  70.     Called when a content shell is added to the the docShell Tree.
  71.     aContentShell - the docShell that has been added.
  72.     aPrimary - true if this is the primary content shell
  73.     aID - the ID of the docShell that has been added.
  74.     */
  75.     void contentShellAdded(in nsIDocShellTreeItem aContentShell, 
  76.         in boolean aPrimary, in wstring aID);
  77.  
  78.     /*
  79.     Returns the Primary Content Shell
  80.     */
  81.     readonly attribute nsIDocShellTreeItem primaryContentShell;
  82.  
  83.     /*
  84.     Tells the tree owner to size its window or parent window in such a way
  85.     that the shell passed along will be the size specified.
  86.     */
  87.     void sizeShellTo(in nsIDocShellTreeItem shell, in long cx, in long cy);
  88.  
  89.     /*
  90.     Sets the persistence of different attributes of the window.
  91.     */
  92.     void setPersistence(in boolean aPersistPosition,
  93.                             in boolean aPersistSize,
  94.                             in boolean aPersistSizeMode);
  95.  
  96.     /*
  97.     Gets the current persistence states of the window.
  98.     */
  99.     void getPersistence(out boolean aPersistPosition,
  100.                             out boolean aPersistSize,
  101.                             out boolean aPersistSizeMode);
  102. };
  103.